//
//  IntroduceCell.m
//  KeepFit
//
//  Created by dllo on 15/11/1.
//  Copyright © 2015年 Fuzzie Liu. All rights reserved.
//

#import "IntroduceCell.h"

@implementation IntroduceCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.introduceImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.introduceImageView];
        self.introduceLab = [[UILabel alloc] init];
        [self.contentView addSubview:self.introduceLab];
        self.introduceLab.numberOfLines = 0;
        
        self.lowLab = [[UILabel alloc] init];
        self.lowLab.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.lowLab];
        
    }
    
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat width = self.contentView.bounds.size.width;
    CGFloat height = self.contentView.bounds.size.height;
    self.introduceImageView.frame = CGRectMake(10, 10, 50, 50);
    self.lowLab.frame = CGRectMake(10, 10 + 50 + 5, 50, 20);
    self.introduceLab.frame = CGRectMake(10 + 50 + 10, 10, width - 10 - 50 - 10, height - 20);
    self.introduceLab.numberOfLines = 0;
    [self.introduceLab sizeToFit];
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
